boot: Activate ostree-finalize-staged even earlier
authorJonathan Lebon <jonathan@jlebon.com>
Fri, 12 Apr 2019 17:49:08 +0000 (13:49 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 15 Apr 2019 00:11:00 +0000 (00:11 +0000)
Really, all `ostree admin finalize-staged` needs is access to `/sysroot`
and `/boot`. So let's activate it right after `local-fs.target` so that
it gets deactivated later in the shutdown process. This should allow us
to conflict with less services still running and possibly writing things
to `/etc`.

Related: https://bugzilla.redhat.com/show_bug.cgi?id=1672283

Closes: #1840
Approved by: cgwalters

src/boot/ostree-finalize-staged.service

index 10e551e4207618794b790c700496879c0112f751..e112bc0cd82385adbe735f11e70c5d9a4db35a20 100644 (file)
@@ -24,8 +24,8 @@ ConditionPathExists=/run/ostree-booted
 DefaultDependencies=no
 
 RequiresMountsFor=/sysroot
-After=basic.target
-Before=multi-user.target final.target
+After=local-fs.target
+Before=basic.target final.target
 Conflicts=final.target
 
 [Service]